console.log("testfile");
const aa="calendarNotes";
const calendarNotesid = await api.runOnBackend((aa) => {
        const notes = api.getNotesWithLabel(aa)[0];
        return notes;
    },[aa]);
console.log(calendarNotesid);
const calendarNotes = await api.runOnBackend((aa) => {
        const notes = api.getNotesWithLabel(aa)[0];
        const events = []; // 存储所有事件 { id, title, start, end }
        for (const cNote of notes.getChildNotes()) {
            const id = cNote.noteId;
            const title = cNote.title;
            const start = cNote.getLabelValue("startDate");
            const end = cNote.getLabelValue("endDate");
        // 添加新事件
            events.push({
                id,
                title,
                start,
                end
            });
          };
        return events;
    },[aa]);
console.log(calendarNotes);

    
   